package com.legsem.jrhosync.ws.rs;

import com.legsem.jhosync.dto.ClientLogin;

/**
 * Test cases for ClientLoginResource.
 * 
 */
public class ClientLoginResourceITCase extends AbstractResourceITCase {

    public void setUp() throws Exception {
        super.setUp();
    }

    public void testAnyUserShouldLogin() throws Exception {
        ClientLogin clientLogin = new ClientLogin();
        clientLogin.setLogin("tartempion");
        clientLogin.setPassword("");
        byte[] response = postJSONRequest("/clientlogin", clientLogin);
        assertEquals("", new String(response, "UTF-8"));
    }

}
